package archsw0904.controller.shopping.order;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;

import archsw0904.controller.shopping.common.BookInfo;
import archsw0904.model.OrderStatus;

public class OrderView {
	private BookInfo[] bookInfo;
	private BookInfo[] bookInfoArray;
	private BigDecimal totalPrice ;
	private Date date;
	private OrderStatus status;
	private String deliveryAddress;
	private String deliveryCap;
	private String deliveryCity;
	private String deliveryName;
	private String deliverySurname;
	private String State;
	private Integer deliveryCode;
	private Integer orderId;
		
	
	public OrderView(){
		bookInfo = new BookInfo[0];
	}
	
	public void setBookInfo(ArrayList<BookInfo> bookInfo) {
		this.bookInfo =bookInfo.toArray(this.bookInfo);
		setBookInfoArray(this.bookInfo);
		System.out.print("orderView " +this.bookInfo.length);
	}
	public BookInfo[] getBookInfo() {
		return bookInfo;
	}
	
	
	public void setTotalPrice(BigDecimal totalPrice) {
		this.totalPrice = totalPrice;
	}
	public BigDecimal getTotalPrice() {
		return totalPrice;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public Date getDate() {
		return date;
	}

	public void setDeliveryAddress(String deliveryAddress) {
		this.deliveryAddress = deliveryAddress;
	}

	public String getDeliveryAddress() {
		return deliveryAddress;
	}

	public void setStatus(OrderStatus status) {
		this.status = status;
	}

	public OrderStatus getStatus() {
		return status;
	}

	public void setDeliveryCity(String deliveryCity) {
		this.deliveryCity = deliveryCity;
	}

	public String getDeliveryCity() {
		return deliveryCity;
	}

	public void setDeliverySurname(String deliverySurname) {
		this.deliverySurname = deliverySurname;
	}

	public String getDeliverySurname() {
		return deliverySurname;
	}

	public void setState(String state) {
		State = state;
	}

	public String getState() {
		return State;
	}

	public void setDeliveryCode(Integer deliveryCode) {
		this.deliveryCode = deliveryCode;
	}

	public Integer getDeliveryCode() {
		return deliveryCode;
	}

	public void setDeliveryName(String deliveryName) {
		this.deliveryName = deliveryName;
	}

	public String getDeliveryName() {
		return deliveryName;
	}

	public void setDeliveryCap(String deliveryCap) {
		this.deliveryCap = deliveryCap;
	}

	public String getDeliveryCap() {
		return deliveryCap;
	}

	public void setBookInfoArray(BookInfo[] bookInfoArray) {
		this.bookInfoArray = bookInfoArray;
	}

	public BookInfo[] getBookInfoArray() {
		return bookInfoArray;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	public Integer getOrderId() {
		return orderId;
	}
	
	
	
}
